﻿/* API函数：String类型相关
 */

namespace LSLib.API
{
    using System;
    using System.Runtime.InteropServices;

    [Serializable]
    public static class String
    {
        /// <summary>将字符串src中的前n个字节拷贝到dest中。
        /// </summary>
        /// <param name="dest">目的字符串</param>
        /// <param name="src">源字符串</param>
        /// <param name="count">要拷贝的字节数</param>
        /// <returns></returns>
        [DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
        internal static extern bool MemCopy(IntPtr dest, IntPtr src, int count);
    }
}
